//
//  QuestionView.h
//  IssuesGame
//
//  Created by Martin Grider on 10/21/09.
//  Copyright 2009 Regents of the University of Minnesota
//

#import <UIKit/UIKit.h>
#import "Tile.h"


@interface QuestionView : UIView {

	UIViewController *gameController;

	UIButton *buttonLeft;
	UIButton *buttonRight;

	UILabel *perspectiveTitle;
	UIImageView *perspectiveImage;
	UILabel *questionText;

	UILabel *answerText1;
	UILabel *answerText2;
	UILabel *answerText3;
	UILabel *answerText4;
	int currentAnswerIndex;
	int correctAnswerIndex;

	int selectedImageTag;
	int unselectedImageTag;
	
	BOOL animatingAnswer;

}

@property (nonatomic, retain) UIViewController *gameController;
@property (nonatomic, retain) UIButton *buttonLeft;
@property (nonatomic, retain) UIButton *buttonRight;
@property (nonatomic, retain) UILabel *perspectiveTitle;
@property (nonatomic, retain) UIImageView *perspectiveImage;
@property (nonatomic, retain) UILabel *questionText;
@property (nonatomic, retain) UILabel *answerText1;
@property (nonatomic, retain) UILabel *answerText2;
@property (nonatomic, retain) UILabel *answerText3;
@property (nonatomic, retain) UILabel *answerText4;

- (id)initWithFrame:(CGRect)frame andController:(UIViewController *)viewController;
- (void)loadQuestionFromTile:(Tile *)tile;
- (void)resetQuestionSelection;
- (void)selectingCurrentAnswer;
- (void)slideToCorrectAnswer;
- (void)slideAnswerLeft;
- (void)slideAnswerRight;
- (void)endImageAnimation;

@end
